package com.front.managementfront.dictionary.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.front.managementfront.agreement.entity.HktsAgreement;
import com.front.managementfront.dictionary.entity.HktsDictionaryItem;
import com.github.pagehelper.PageInfo;
import com.hkts.management.common.utils.Result;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yck
 * @since 2021-05-09
 */
public interface IHktsDictionaryItemService extends IService<HktsDictionaryItem> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param hktsDictionaryItem
     * @return
     */
    PageInfo selectPage(Page<HktsDictionaryItem> page, HktsDictionaryItem hktsDictionaryItem);


    List<HktsDictionaryItem> selectList(HktsDictionaryItem hktsDictionaryItem);

    List<HktsDictionaryItem> getByListId(String listId);

    List<HktsDictionaryItem> hktsDictionaryItemsGetByKeyAndItemName(String key, String itemName);

    List<HktsDictionaryItem> getHotCategories(String key);

    void hktsDictionaryItemSave(HktsDictionaryItem hktsDictionaryItem);

    List<HktsDictionaryItem> getHktsDictionaryItemList(String listId);

    List<HktsDictionaryItem> getHktsDictionaryByAgreementId(String agreementId);

    Result<HktsAgreement> getAgreementContent(String cargoTypeId, String contractId);

    Map<String, Object> getDictItemByItemId(String itemId);
}